package text;
import java.sql.Connection;
import java.util.List;

import damain.Countries;
import damain.Jobs;
import dao.CountryDao;
import dao.JobDao;
import dao.Util;
public class Text {

	public static void main(String[] args) {
		Connection con=Util.getConnection();
		CountryDao cd=new CountryDao();
//		cd.insert(new Countries("AA", "Xin", 3));
//		cd.delete("AR");
		List<Countries> cts=cd.findall(2);
		for (Countries c : cts) {    
			System.out.println(c.toString());
		}
//		cd.update(1, "AU");
	/************************************/	
//		JobDao jd=new JobDao();
//		jd.insert(new Jobs("MM_NIKE", "Conmputer", 20000, 5000));
//		jd.delete("MM_m=NIKE");
	}

}
